package com.ys.service.Impl;

import com.ys.mapper.AllocationRecordMapper;
import com.ys.pojo.AllocationRecord;
import com.ys.service.AllocationService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service("AllocationService")
@Transactional
public class AllocationServiceImpl implements AllocationService {

    @Resource
    private AllocationRecordMapper allocationRecordMapper;

    @Override
    public List<AllocationRecord> searchAll() {
        return allocationRecordMapper.findAll();
    }
}
